home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / dlibsrc.arc / STRCMP.C < prev    next >
Encoding:
Text File  |  1988-10-05  |  163 b   |  9 lines

  1. int strcmp(str1, str2)
  2.     register char *str1, *str2;
  3.     {
  4.     for(; *str1 == *str2; ++str1, ++str2)
  5.         if(*str1 == '\0')
  6.             return(0);
  7.     return(*str1 - *str2);
  8.     }
  9.